import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from "../views/Home";
import ListHospSet from "../views/hospset/List";
import Add from "../views/hospset/Add";
import TreeList from "../views/dict/TreeList";
import ListHosp from "../views/hosp/List";
import Show from "../views/hosp/Show";
import Schedule from "../views/hosp/Department";

Vue.use(VueRouter)

const routes = [
  {path: '/',redirect: '/home'},
  {path: '/home',component: Home,
  children: [
    {path: '/list_hs',component: ListHospSet},
    {path: '/add',component: Add},
    {path: '/dict',component: TreeList},
    {path: '/list_h',component: ListHosp},
    {path: '/hospital/show/:id',component: Show,hidden: true},
    {path: '/hospital/schedule/:hoscode',component: Schedule,hidden: true}
  ]}
]

const router = new VueRouter({
  routes
})

export default router
